
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_demo/util/screen_util.dart';

import 'colors.dart';

class Dimens {
  static double font_sp20 = ScreenAdaptive.sp(20);
  static double font_sp22 = ScreenAdaptive.sp(22);
  static double font_sp24 = ScreenAdaptive.sp(24);
  static double font_sp26 = ScreenAdaptive.sp(26);
  static double font_sp28 = ScreenAdaptive.sp(28);
  static double font_sp30 = ScreenAdaptive.sp(30);
  static double font_sp32 = ScreenAdaptive.sp(32);
  static double font_sp34 = ScreenAdaptive.sp(34);
  static double font_sp36 = ScreenAdaptive.sp(36);

  static double gap_dp5 = 5;
  static double gap_dp10 = 10;
  static double gap_dp12 = 12;
  static double gap_dp15 = 15;
  static double gap_dp30 = 30;
  static double gap_dp16 = 16;
  static double gap_dp20 = 20;
  static double gap_dp50 = 50;

  static double dWidth1 = ScreenAdaptive.width(1);
  static double dWidth5 = ScreenAdaptive.width(5);
  static double dWidth10 = ScreenAdaptive.width(10);
  static double dWidth19 = ScreenAdaptive.width(19);
  static double dWidth24 = ScreenAdaptive.width(24);
  static double dWidth22 = ScreenAdaptive.width(22);
  static double dWidth30 = ScreenAdaptive.width(30);
  static double dWidth32 = ScreenAdaptive.width(32);
  static double dWidth44 = ScreenAdaptive.width(44);
  static double dWidth45 = ScreenAdaptive.width(45);
  static double dWidth50 = ScreenAdaptive.width(50);
  static double dWidth80 = ScreenAdaptive.width(80);
  static double dWidth90 = ScreenAdaptive.width(90);
  static double dWidth100 = ScreenAdaptive.width(100);
  static double dWidth152 = ScreenAdaptive.width(152);
  static double dWidth180 = ScreenAdaptive.width(180);
  static double dWidth518 = ScreenAdaptive.width(518);

  static double dHeight1 = ScreenAdaptive.height(1);
  static double dHeight2 = ScreenAdaptive.height(2);
  static double dHeight6 = ScreenAdaptive.height(6);
  static double dHeight11 = ScreenAdaptive.height(11);
  static double dHeight29 = ScreenAdaptive.height(29);
  static double dHeight46 = ScreenAdaptive.height(46);
  static double dHeight67 = ScreenAdaptive.height(67);
  static double dHeight82 = ScreenAdaptive.height(82);
  static double dHeight200 = ScreenAdaptive.height(200);
  static double dHeight400 = ScreenAdaptive.height(400);
  static double getNavBarheight = ScreenAdaptive.navibarHeight();

  static Widget sizeBox_h2 = SizedBox(height: ScreenAdaptive.height(2),);
  static Widget sizeBox_h10 = SizedBox(height: ScreenAdaptive.height(10),);
  static Widget sizeBox_h28 = SizedBox(height: ScreenAdaptive.height(28),);
  static Widget sizeBox_h55 = SizedBox(height: ScreenAdaptive.height(55),);

  static Widget sizeBox_w17 = SizedBox(width: ScreenAdaptive.width(17),);
  static Widget sizeBox_w20 = SizedBox(width: ScreenAdaptive.width(20),);
  static Widget sizeBox_w23 = SizedBox(width: ScreenAdaptive.width(23),);
  static Widget sizeBox_w29 = SizedBox(width: ScreenAdaptive.width(29),);
  static Widget sizeBox_w30 = SizedBox(width: ScreenAdaptive.width(30),);
  static Widget sizeBox_w50 = SizedBox(width: ScreenAdaptive.width(50),);
  static Widget sizeBox_w80 = SizedBox(width: ScreenAdaptive.width(80),);


  static Widget gap_w30 = SizedBox(width: ScreenAdaptive.width(30),);
  static Widget gap_w28 = SizedBox(width: ScreenAdaptive.width(28),);


  static const double size_arrow_back = 18;
  static const double divider_height = 5;
  static const double bottom_sheet_radus = 10;
  static const double bottom_sheet_item_height = 50;


  static TextStyle style20_65 = TextStyle(color: Colours.color_65, fontSize: Dimens.font_sp20);
  static TextStyle style24_65 = TextStyle(color: Colours.color_65, fontSize: Dimens.font_sp24);
  static TextStyle style26_65 = TextStyle(color: Colours.color_65, fontSize: Dimens.font_sp26);
  static TextStyle style30_28 = TextStyle(color: Colours.color_28, fontSize: Dimens.font_sp30);
  static TextStyle style30_98 = TextStyle(color: Colours.color_98, fontSize: Dimens.font_sp30);
  static TextStyle style36_28 = TextStyle(color: Colours.color_28, fontSize: Dimens.font_sp36);

}
class AppTheme {
  static getThemeData(int color) {
    ThemeData themData = ThemeData(
      primaryColor: Color(color == 0 ? Colors.red.value : color),
      scaffoldBackgroundColor: Colours.color_f9,
      fontFamily: 'Aleo',
    );
    return themData;
  }
}